package com.education.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 余一
 * @since 2021-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("system_menu")
@ApiModel(value="SystemMenu对象", description="")
public class SystemMenu extends BaseEntity<SystemMenu> {

    @TableField("name")
    private String name;

    @TableField("url")
    private String url;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("permission")
    private String permission;

    @TableField("icon")
    private String icon;

    @TableField("sort")
    private Integer sort = 0;

    @ApiModelProperty(value = "类型（1菜单 2. 目录 3 按钮)")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "创建类型（1 系统内置 2. 管理员创建)")
    @TableField("create_type")
    private Integer createType;

}
